Skip to content

[FEAT] Add cicd for frontend#12

Merged
nadir2609 merged 5 commits into
mainfrom
11-add-cicd-for-frontend
Dec 9, 2025
Merged

[FEAT] Add cicd for frontend#12
nadir2609 merged 5 commits into
mainfrom
11-add-cicd-for-frontend

Conversation

@nadir2609

Copy link
Copy Markdown
Collaborator

This pull request introduces a new GitHub Actions workflow for continuous integration and deployment of the frontend application. The workflow automates building the frontend, installing dependencies, and securely uploading the build artifacts to a hosting service. This streamlines the deployment process and improves reliability for frontend changes.

Frontend CI/CD automation:

  • Added .github/workflows/frontend-ci-cd.yml to define a workflow that builds the frontend on pull requests to main, installs dependencies, and runs the build process using Node.js and Vite.

Automated deployment to hosting service:

  • Implemented a deployment step that uploads the built frontend (dist folder) to a hosting service using a Python script, authenticating via environment secrets and handling file uploads recursively.
  • Added secure management of API and hosting credentials via GitHub secrets to ensure sensitive data is not exposed in the workflow.

Tooling and environment setup:

  • Configured the workflow to use specific versions of Node.js (24.3.0) and Python (3.12.5) to ensure consistent builds and compatibility.
  • Provided an optional linting step (commented out) for future code quality checks.

Closes #11

@nadir2609 nadir2609 self-assigned this Dec 9, 2025
Copilot AI review requested due to automatic review settings December 9, 2025 10:41
@nadir2609 nadir2609 added the enhancement New feature or request label Dec 9, 2025
@nadir2609 nadir2609 added this to ChatOps Dec 9, 2025
@github-project-automation github-project-automation Bot moved this to Todo in ChatOps Dec 9, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a GitHub Actions workflow for automating frontend builds and deployments. The workflow handles dependency installation, building with Vite, and uploading artifacts to a hosting service via a Python script.

Key changes:

  • Added automated CI/CD workflow that triggers on pull requests to main
  • Implemented build validation using Node.js and Vite
  • Integrated deployment step using Python to upload built artifacts to a hosting service

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/frontend-ci-cd.yml
Comment thread .github/workflows/frontend-ci-cd.yml
Comment thread .github/workflows/frontend-ci-cd.yml
Comment thread .github/workflows/frontend-ci-cd.yml Outdated
@nadir2609 nadir2609 requested a review from martian56 December 9, 2025 10:46
nadir2609 and others added 3 commits December 9, 2025 14:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nadir2609 nadir2609 added the CI/CD label Dec 9, 2025

@martian56 martian56 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey man, great job there! But please check the suggestions copilot generated.

@nadir2609 nadir2609 merged commit 7dc6813 into main Dec 9, 2025
3 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in ChatOps Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add CI/CD for frontend

3 participants